package com.koron.order.concession.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.concession.bean.po.ConcessionInfluencePo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 让步接收单-影响对应从表(ConcessionInfluence)表服务接口
 *
 * @author zhouj
 * @since 2022-01-14 10:14:07
 */
public interface ConcessionInfluenceService {

    int insertOrUpdate(SessionFactory factory, ConcessionInfluencePo concessionInfluence);

    int insertOrUpdateBatch(SessionFactory factory, List<ConcessionInfluencePo> concessionInfluenceList);

    int insert(SessionFactory factory, ConcessionInfluencePo concessionInfluence);

    int insertBatch(SessionFactory factory, List<ConcessionInfluencePo> concessionInfluenceList);

    int update(SessionFactory factory, ConcessionInfluencePo concessionInfluence);

    int deleteById(SessionFactory factory, String id);

    int deleteByConcessionId(SessionFactory factory, String concessionId);

    ConcessionInfluencePo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, ConcessionInfluencePo concessionInfluence, PageQuery pageQuery);

    List<ConcessionInfluencePo> queryList(SessionFactory factory, ConcessionInfluencePo concessionInfluence);

}
